* {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  flex-grow: 0;
  box-sizing: border-box;
  font-family: "SimSun", Courier, monospace;
  font-size: medium;
}

a:link,
a:link:visited {
  text-decoration: none;
  color: rgb(108, 108, 108);
}
a:link:hover {
  color: rgb(255, 68, 0);
  background-color: white;
}
.flex-container {
  display: flex;
}
header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgb(245, 245, 245);
}
header a {
  flex-shrink: 0;
  flex-grow: 0;
  padding: 10px;
  font-size: larger;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin: 15px auto;
}
nav a {
  font-size: smaller;
}
.search input,
.search button {
  height: 40px;
  border: 5px solid red;
}

.search button {
  background-color: red;
  flex: 1;
}
.search input {
  flex: 5;
}
.search input:focus {
  outline: none;
}

/* 商品 */
.goods-list {
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.goods-list .goods {
  width: 100%;
  margin-bottom: 10px;
}

.goods-list a {
  padding: 20px;
  width: 240px;
  background-color: white;
  border: 1px solid rgb(242, 242, 242);
}
.goods-list a:hover {
  border: 1px solid rgb(255, 68, 0);
}
.goods-list .goods-description {
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goods-list .goods-description::after {
  content: "...";
}

.goods-list .goods-price {
  margin: 8px 0;
}
.goods-list .goods-price .current-price {
  color: rgb(255, 68, 0);
}
.goods-list .goods-price .original-price {
  text-decoration: line-through;
}
.goods-list .goods-sales {
  border-top: 1px rgb(248, 248, 248) solid;
  padding-top: 10px;
  text-align: right;
}

footer {
  width: 80%;
  margin: 50px auto;
}

.footer {
  display: flex;
  justify-content: center;
}
.footer a {
  border-right: 1px solid rgb(223, 230, 243);
  padding: 0 1%;
}
.footer a:last-child {
  border-right: none;
}
aside {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 300px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  background-color: rgb(247, 249, 250);
  text-align: center;
}
aside a {
  padding: 20px;
  font-size: large;
}

.stress:link {
  color: rgb(242, 76, 38);
}

@media only screen and (max-width: 800px) {
  * {
    font-size: x-large;
  }
  a:link,
  a:link:visited {
    text-decoration: none;
    color: purple;
  }

  header {
    overflow: scroll;
  }
  nav {
    display: block;
    width: 80%;
    margin: 15px auto;
  }
  nav .logo {
    display: block;
    margin: 0 auto;
  }

  .goods-list {
    width: 100%;
    justify-content: space-around;
  }
  .goods-list a {
    padding: 10px;
    width: 160px;
  }
  .goods-list .current-price,
  .goods-list .original-price {
    display: block;
    text-align: center;
  }
  aside {
    display: none;
  }
  .footer {
    flex-wrap: wrap;
  }
}
